<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title></title>
	</head>
	<body>
		<div id="Time"></div>
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		<script type="text/javascript">
			setInterval(dataTime,1000);
			dataTime();
			function dataTime(){
				var myTime = new Date();
				var year = myTime.getFullYear();
				var month = myTime.getMonth() + 1;
				var date = myTime.getDate();
				var week = myTime.getDay();
				var hour = myTime.getHours();
				var min = myTime.getMinutes();
				var sec =myTime.getSeconds();
				
				fnTwo();
				function fnTwo(n){
					return n < 10 ? '0' + n : '' + n; 
				}
				
				if(week === 0) week = '星期日';
				if(week === 1) week = '星期一';
				if(week === 2) week = '星期二';
				if(week === 3) week = '星期三';
				if(week === 4) week = '星期四';
				if(week === 5) week = '星期五';
				if(week === 6) week = '星期六';
				
				var str = '';
				str = year + '年' + fnTwo(month) + '月' + fnTwo(date) + '日 ' + week + ' ' + fnTwo(hour) + ':' + fnTwo(min) + ':' + fnTwo(sec)
				
				document.getElementById('Time').innerHTML = str;
			}
		</script>
	</body>
</html>
